namespace Enemy
{
    public class Skeleton : FSM
    {
        protected override void Awake()
        {
            // 初始化各个状态，并添加到状态字典中
            states.Add(StateType.Idle, new IdleState(this));
            states.Add(StateType.Patrol, new PatrolState(this));
            states.Add(StateType.Chase, new ChaseState(this));
            states.Add(StateType.React, new ReactState(this));
            states.Add(StateType.Attack, new AttackState(this));
            states.Add(StateType.Hit, new HitState(this));
            states.Add(StateType.Death, new DeathState(this));
        }
    }
}


